Optimal. Leaf size=144 \[ \frac {\log \left (a+b x^2+c x^4\right ) \left (-c (a f+b e)+b^2 f+c^2 d\right )}{4 c^3}-\frac {\tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right ) \left (-b c (c d-3 a f)-2 a c^2 e+b^3 (-f)+b^2 c e\right )}{2 c^3 \sqrt {b^2-4 a c}}+\frac {x^2 (c e-b f)}{2 c^2}+\frac {f x^4}{4 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.27, antiderivative size = 144, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {1663, 1628, 634, 618, 206, 628} \[ \frac {\log \left (a+b x^2+c x^4\right ) \left (-c (a f+b e)+b^2 f+c^2 d\right )}{4 c^3}-\frac {\tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right ) \left (-b c (c d-3 a f)-2 a c^2 e+b^2 c e+b^3 (-f)\right )}{2 c^3 \sqrt {b^2-4 a c}}+\frac {x^2 (c e-b f)}{2 c^2}+\frac {f x^4}{4 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 206
Rule 618
Rule 628
Rule 634
Rule 1628
Rule 1663
Rubi steps
\begin {align*} \int \frac {x^3 \left (d+e x^2+f x^4\right )}{a+b x^2+c x^4} \, dx &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {x \left (d+e x+f x^2\right )}{a+b x+c x^2} \, dx,x,x^2\right )\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \left (\frac {c e-b f}{c^2}+\frac {f x}{c}-\frac {a (c e-b f)-\left (c^2 d-b c e+b^2 f-a c f\right ) x}{c^2 \left (a+b x+c x^2\right )}\right ) \, dx,x,x^2\right )\\ &=\frac {(c e-b f) x^2}{2 c^2}+\frac {f x^4}{4 c}-\frac {\operatorname {Subst}\left (\int \frac {a (c e-b f)-\left (c^2 d-b c e+b^2 f-a c f\right ) x}{a+b x+c x^2} \, dx,x,x^2\right )}{2 c^2}\\ &=\frac {(c e-b f) x^2}{2 c^2}+\frac {f x^4}{4 c}-\frac {\left (-c^2 d+b c e-b^2 f+a c f\right ) \operatorname {Subst}\left (\int \frac {b+2 c x}{a+b x+c x^2} \, dx,x,x^2\right )}{4 c^3}+\frac {\left (b^2 c e-2 a c^2 e-b^3 f-b c (c d-3 a f)\right ) \operatorname {Subst}\left (\int \frac {1}{a+b x+c x^2} \, dx,x,x^2\right )}{4 c^3}\\ &=\frac {(c e-b f) x^2}{2 c^2}+\frac {f x^4}{4 c}+\frac {\left (c^2 d-b c e+b^2 f-a c f\right ) \log \left (a+b x^2+c x^4\right )}{4 c^3}-\frac {\left (b^2 c e-2 a c^2 e-b^3 f-b c (c d-3 a f)\right ) \operatorname {Subst}\left (\int \frac {1}{b^2-4 a c-x^2} \, dx,x,b+2 c x^2\right )}{2 c^3}\\ &=\frac {(c e-b f) x^2}{2 c^2}+\frac {f x^4}{4 c}-\frac {\left (b^2 c e-2 a c^2 e-b^3 f-b c (c d-3 a f)\right ) \tanh ^{-1}\left (\frac {b+2 c x^2}{\sqrt {b^2-4 a c}}\right )}{2 c^3 \sqrt {b^2-4 a c}}+\frac {\left (c^2 d-b c e+b^2 f-a c f\right ) \log \left (a+b x^2+c x^4\right )}{4 c^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 136, normalized size = 0.94 \[ \frac {\log \left (a+b x^2+c x^4\right ) \left (-c (a f+b e)+b^2 f+c^2 d\right )-\frac {2 \tan ^{-1}\left (\frac {b+2 c x^2}{\sqrt {4 a c-b^2}}\right ) \left (b c (c d-3 a f)+2 a c^2 e+b^3 f-b^2 c e\right )}{\sqrt {4 a c-b^2}}+2 c x^2 (c e-b f)+c^2 f x^4}{4 c^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.50, size = 473, normalized size = 3.28 \[ \left [\frac {{\left (b^{2} c^{2} - 4 \, a c^{3}\right )} f x^{4} + 2 \, {\left ({\left (b^{2} c^{2} - 4 \, a c^{3}\right )} e - {\left (b^{3} c - 4 \, a b c^{2}\right )} f\right )} x^{2} - {\left (b c^{2} d - {\left (b^{2} c - 2 \, a c^{2}\right )} e + {\left (b^{3} - 3 \, a b c\right )} f\right )} \sqrt {b^{2} - 4 \, a c} \log \left (\frac {2 \, c^{2} x^{4} + 2 \, b c x^{2} + b^{2} - 2 \, a c - {\left (2 \, c x^{2} + b\right )} \sqrt {b^{2} - 4 \, a c}}{c x^{4} + b x^{2} + a}\right ) + {\left ({\left (b^{2} c^{2} - 4 \, a c^{3}\right )} d - {\left (b^{3} c - 4 \, a b c^{2}\right )} e + {\left (b^{4} - 5 \, a b^{2} c + 4 \, a^{2} c^{2}\right )} f\right )} \log \left (c x^{4} + b x^{2} + a\right )}{4 \, {\left (b^{2} c^{3} - 4 \, a c^{4}\right )}}, \frac {{\left (b^{2} c^{2} - 4 \, a c^{3}\right )} f x^{4} + 2 \, {\left ({\left (b^{2} c^{2} - 4 \, a c^{3}\right )} e - {\left (b^{3} c - 4 \, a b c^{2}\right )} f\right )} x^{2} + 2 \, {\left (b c^{2} d - {\left (b^{2} c - 2 \, a c^{2}\right )} e + {\left (b^{3} - 3 \, a b c\right )} f\right )} \sqrt {-b^{2} + 4 \, a c} \arctan \left (-\frac {{\left (2 \, c x^{2} + b\right )} \sqrt {-b^{2} + 4 \, a c}}{b^{2} - 4 \, a c}\right ) + {\left ({\left (b^{2} c^{2} - 4 \, a c^{3}\right )} d - {\left (b^{3} c - 4 \, a b c^{2}\right )} e + {\left (b^{4} - 5 \, a b^{2} c + 4 \, a^{2} c^{2}\right )} f\right )} \log \left (c x^{4} + b x^{2} + a\right )}{4 \, {\left (b^{2} c^{3} - 4 \, a c^{4}\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.99, size = 141, normalized size = 0.98 \[ \frac {c f x^{4} - 2 \, b f x^{2} + 2 \, c x^{2} e}{4 \, c^{2}} + \frac {{\left (c^{2} d + b^{2} f - a c f - b c e\right )} \log \left (c x^{4} + b x^{2} + a\right )}{4 \, c^{3}} - \frac {{\left (b c^{2} d + b^{3} f - 3 \, a b c f - b^{2} c e + 2 \, a c^{2} e\right )} \arctan \left (\frac {2 \, c x^{2} + b}{\sqrt {-b^{2} + 4 \, a c}}\right )}{2 \, \sqrt {-b^{2} + 4 \, a c} c^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.01, size = 321, normalized size = 2.23 \[ \frac {f \,x^{4}}{4 c}+\frac {3 a b f \arctan \left (\frac {2 c \,x^{2}+b}{\sqrt {4 a c -b^{2}}}\right )}{2 \sqrt {4 a c -b^{2}}\, c^{2}}-\frac {a e \arctan \left (\frac {2 c \,x^{2}+b}{\sqrt {4 a c -b^{2}}}\right )}{\sqrt {4 a c -b^{2}}\, c}-\frac {b^{3} f \arctan \left (\frac {2 c \,x^{2}+b}{\sqrt {4 a c -b^{2}}}\right )}{2 \sqrt {4 a c -b^{2}}\, c^{3}}+\frac {b^{2} e \arctan \left (\frac {2 c \,x^{2}+b}{\sqrt {4 a c -b^{2}}}\right )}{2 \sqrt {4 a c -b^{2}}\, c^{2}}-\frac {b d \arctan \left (\frac {2 c \,x^{2}+b}{\sqrt {4 a c -b^{2}}}\right )}{2 \sqrt {4 a c -b^{2}}\, c}-\frac {b f \,x^{2}}{2 c^{2}}+\frac {e \,x^{2}}{2 c}-\frac {a f \ln \left (c \,x^{4}+b \,x^{2}+a \right )}{4 c^{2}}+\frac {b^{2} f \ln \left (c \,x^{4}+b \,x^{2}+a \right )}{4 c^{3}}-\frac {b e \ln \left (c \,x^{4}+b \,x^{2}+a \right )}{4 c^{2}}+\frac {d \ln \left (c \,x^{4}+b \,x^{2}+a \right )}{4 c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.30, size = 1689, normalized size = 11.73 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________